﻿#region namespaces

using System;
using System.Linq.Expressions;

#endregion

namespace ZOIL.DataBackend.BaseX
{
    public static class ExpressionExtensions
    {
        public static string GetMemberName<T>(this Expression<Func<T>> getValueExpression)
        {
            var body = (MemberExpression) getValueExpression.Body;
            return body.Member.Name;
        }
    }
}